/**
 * Created by IntelliJ IDEA.
 *
 * @Avatar: xyb
 * Date: 2017/9/5
 * Time: 15:51
 * 用户关注项目表
 * To change this template use File | Settings | File Templates.
 */

package blog.sys.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "t_follow_item")
public class FollowItem implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String user_id;//关注的用户编号

    private Integer follow_id;// 项目编号

    private Date create_time;//关注的时间

    private Integer type_id;//关注的项目类型 0:所有 ，1:专题 ，2：文集 3：用户，4：推送更新

    private String rel_table;// 项目对应的表

    private Integer status;//专题状态：0：正常，1：取消关注

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getId() {
        return id;
    }

    @Column(name = "user_id")
    public String getUser_id() {
        return user_id;
    }

    @Column(name = "follow_id")
    public Integer getFollow_id() {
        return follow_id;
    }

    @Column(name = "create_time")
    public Date getCreate_time() {
        return create_time;
    }

    @Column(name = "type_id")
    public Integer getType_id() {
        return type_id;
    }

    @Column(name = "rel_table")
    public String getRel_table() {
        return rel_table;
    }

    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public void setFollow_id(Integer follow_id) {
        this.follow_id = follow_id;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public void setType_id(Integer type_id) {
        this.type_id = type_id;
    }

    public void setRel_table(String rel_table) {
        this.rel_table = rel_table;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
